package com.example.demo6.vo;

import com.example.demo6.domain.Movie;

/**
 * 电影值对象
 */
public class MovieVO {

    private Long id;
    private String name;
    private String photo;

    public MovieVO(){

    }

    public MovieVO(Movie movie){
        this.id = movie.getId();
        this.name= movie.getName();
        this.photo = movie.getPhoto();
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }
}